<?php
 defined('RUN')or die('No access');class Hook{private static $a=array();public static function add($b){if(!array_key_exists($b,self::$a)){self::$a[$b]=FALSE;$c=HOOKS_PATH.strtolower($b).EXT;if(is_readable($c)){include $c;self::$a[$b]=TRUE;return TRUE;}}return FALSE;}public static function getALl(){return array_keys(self::$a);}public static function getAllHooked(){$d=array();foreach(self::$a as $e=>$f){if($f===TRUE){$d[]=$e;}}return $d;}}